package cloud.xiangyixiang.www.spring.boot.java.basics.enums;

/**
 * <p>
 * 枚举类单例
 * </p>
 *
 * @author weixin
 * @date 2023/9/5 15:15
 */
public enum BeanContextEnum {

    /**
     * 单例
     */
    INSTANCE;

    private BeanContextEnum() {
        System.out.println("init");
    }

    public void print() {
        System.out.println("hello");
    }

}
